package com.itheima.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;


@Data
@Configuration //配置类
@ConfigurationProperties(prefix = "user") //读取配置文件中指定前缀的配置
public class UserConfig {
    private String username;
    private String password;
    private List<String> addressList;
}